<html>
<head>
<title> Protecting a Resource </title>
<meta name="Keywords" content="" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="stylesheet.css"/>
<script src="locate.js"></script>
<link href="prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="prettify.js"></script>
</head>
<script src="highlight.js"></script>
<body bgcolor="#FFFFFF" text="#000000" link="#0000A0" alink="#008000" vlink="#FF0000" onLoad="FindCorrectTOCPage(); prettyPrint()">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td>
<p class="pagenavigation"><a href="25087.htm" target="_self"><img src="38976.gif" alt="Previous page" height="16" width="16" vspace="0" hspace="1" align="top" border="0"> Previous page</a></p></td>
<td>
<p class="pagenavigation"><a href="22420.htm" target="_self"><img src="38977.gif" alt="Next page" height="16" width="16" vspace="0" hspace="1" align="top" border="0"> Next page</a></p></td>
<td>
<p class="pagenavigation"><a href="toc4151970.htm" target="TOC"><img src="38970.gif" alt="Locate page" height="16" width="16" vspace="0" hspace="1" align="top" border="0"> Locate page</a></p></td>
<td>
<p class="pagenavigation"><a href="toc4151970.htm" target="TOC"><a class="" title="" href="javascript:print();" target="_self"><img src="39072.gif" alt="Print this page" height="16" width="16" vspace="0" hspace="1" align="top" border="0"></a></a></p></td>
</tr>
</table>
<h3 class="heading3">Protecting a Resource</h3>
<p class="bodytext">To password protect a directory in your site and to specify authorized users:</p>
<ol class="procedurelistnumber"><li class="procedurelistnumber">On your Home page, click the domain name you need.</li><li class="procedurelistnumber">Click the <strong class="specialbold">Directories</strong> icon in the <strong class="specialbold">Hosting</strong> group.</li><li class="procedurelistnumber">Click <strong class="specialbold">Add New Directory</strong>.</li><li class="procedurelistnumber">Specify the path to the directory that you wish to password protect. <p class="listcontinue">This can be any directory existing in your site, for example: <code class="monospace">/private</code>. If the directory that you would like to protect has not yet been created, specify the path and the directory name – Plesk will create it for you.</p>
</li><li class="procedurelistnumber">Specify in what location (also called document root) your password protected directory resides or will reside. For example:<ul class="listbullet2"><li class="listbullet2">To protect the <code class="monospace">httpdocs/private</code> directory, type '/private' in the <strong class="specialbold">Directory name</strong> box and select the <strong class="specialbold">Non-SSL</strong> check box.</li><li class="listbullet2">To protect the <code class="monospace">httpsdocs/private</code> directory, type '/private' in the <strong class="specialbold">Directory name</strong> box and select the <strong class="specialbold">SSL</strong> check box.</li><li class="listbullet2">To protect your CGI scripts stored in the <code class="monospace">cgi-bin</code> directory, leave '/' in the <strong class="specialbold">Directory name</strong> box and select the <strong class="specialbold">cgi-bin</strong> check box. Make sure there are no white spaces after the slash symbol; otherwise, a protected directory will be created with the name consisting of white spaces. </li></ul></li><li class="procedurelistnumber">In the <strong class="specialbold">Header Text</strong> box, type a resource description or a welcoming message that your users will see when they visit your protected area.</li><li class="procedurelistnumber">Click <strong class="specialbold">OK</strong>. The directory you specified will be protected.</li><li class="procedurelistnumber">To add authorized users, click <strong class="specialbold">Add New User</strong>.</li><li class="procedurelistnumber">Specify the login name and password that will be used for accessing the protected area. The password should be from 5 to 14 symbols in length. Click <strong class="specialbold">OK</strong>.</li><li class="procedurelistnumber">To add more authorized users for this protected resource, repeat the steps 7 and 8.</li></ol><p class="bodytext"></p>


</body>
<script>highlightTOC()</script>
</html>

